PageSourceSearch

https://app.waitry.net/common/services/nextItemStatus.js?v=708442469

js waitry.net collected 2026-10-01 14:57:43 UTC 770 bytes, 24 lines download raw bytes

1waitryApp.factory('nextItemStatus', [function(){
2	return {
3		get: function (input) {
4			var ns = '';
5			var ac = '';
6			switch (input){
7				case 'queued' : ns='accepted'; ac='acceptItem'; break;
8				case 'accepted' : ns='in_progress'; ac='startCookingItem'; break;
9				case 'in_progress' : ns='prepaired'; ac='serveItem'; break;
10				case 'prepaired' : ns='delivered'; ac='deliverItem'; break;
11			}
12			return {nst:ns,nat:ac};
13		},
14	    orderStatusToItemStatus: function (orderStatusName) {
15			var itemStatusName = orderStatusName;
16			switch (orderStatusName) {
17				case 'placed': itemStatusName = 'queued'; break;
18				case 'progress': itemStatusName = 'in_progress'; break;
19				case 'ready': itemStatusName = 'prepaired'; break;
20			}
21			return itemStatusName;
22		}
23	}
24}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.