Built motion from commit 9e1ec266.|2.6.28
[motion2.git] / server / api / faxQueue / faxQueue.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xac12=['update','emit','removeListener','length','faxQueue:','./faxQueue.events','save'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xac12,0x7c));var _0x2ac1=function(_0x34b66e,_0x32c6a0){_0x34b66e=_0x34b66e-0x0;var _0x3bd12a=_0xac12[_0x34b66e];return _0x3bd12a;};'use strict';var FaxQueueEvents=require(_0x2ac1('0x0'));var events=[_0x2ac1('0x1'),'remove',_0x2ac1('0x2')];function createListener(_0x7ff374,_0x54ae5b){return function(_0x941015){_0x54ae5b[_0x2ac1('0x3')](_0x7ff374,_0x941015);};}function removeListener(_0x5a84ea,_0x2c4d54){return function(){FaxQueueEvents[_0x2ac1('0x4')](_0x5a84ea,_0x2c4d54);};}exports['register']=function(_0x393bf3){for(var _0x4c167a=0x0,_0x265f20=events[_0x2ac1('0x5')];_0x4c167a<_0x265f20;_0x4c167a++){var _0x2b7053=events[_0x4c167a];var _0x2f2594=createListener(_0x2ac1('0x6')+_0x2b7053,_0x393bf3);FaxQueueEvents['on'](_0x2b7053,_0x2f2594);}};