Built motion from commit efa66e19.|2.6.22
[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 _0xea81=['emit','removeListener','length','./faxQueue.events','save','remove','update'];(function(_0x4766b7,_0x22d6ea){var _0x570070=function(_0x538546){while(--_0x538546){_0x4766b7['push'](_0x4766b7['shift']());}};_0x570070(++_0x22d6ea);}(_0xea81,0x1ed));var _0x1ea8=function(_0x4fc448,_0x330c23){_0x4fc448=_0x4fc448-0x0;var _0x2018ed=_0xea81[_0x4fc448];return _0x2018ed;};'use strict';var FaxQueueEvents=require(_0x1ea8('0x0'));var events=[_0x1ea8('0x1'),_0x1ea8('0x2'),_0x1ea8('0x3')];function createListener(_0x4dad1f,_0x483fce){return function(_0x3ca664){_0x483fce[_0x1ea8('0x4')](_0x4dad1f,_0x3ca664);};}function removeListener(_0x2e6a47,_0x298375){return function(){FaxQueueEvents[_0x1ea8('0x5')](_0x2e6a47,_0x298375);};}exports['register']=function(_0x486b32){for(var _0x5f4538=0x0,_0x28192b=events[_0x1ea8('0x6')];_0x5f4538<_0x28192b;_0x5f4538++){var _0x43404b=events[_0x5f4538];var _0x2140e8=createListener('faxQueue:'+_0x43404b,_0x486b32);FaxQueueEvents['on'](_0x43404b,_0x2140e8);}};