Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / openchannelQueue / openchannelQueue.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 _0xff4a=['remove','update','emit','length','openchannelQueue:','./openchannelQueue.events','save'];(function(_0x279c80,_0x3c9692){var _0x4e1f5c=function(_0xe42af3){while(--_0xe42af3){_0x279c80['push'](_0x279c80['shift']());}};_0x4e1f5c(++_0x3c9692);}(_0xff4a,0xde));var _0xaff4=function(_0x4f66d8,_0x196715){_0x4f66d8=_0x4f66d8-0x0;var _0x272498=_0xff4a[_0x4f66d8];return _0x272498;};'use strict';var OpenchannelQueueEvents=require(_0xaff4('0x0'));var events=[_0xaff4('0x1'),_0xaff4('0x2'),_0xaff4('0x3')];function createListener(_0x47c2c1,_0x3c985d){return function(_0x16404a){_0x3c985d[_0xaff4('0x4')](_0x47c2c1,_0x16404a);};}function removeListener(_0xfae161,_0x93ad27){return function(){OpenchannelQueueEvents['removeListener'](_0xfae161,_0x93ad27);};}exports['register']=function(_0x1c5f75){for(var _0x386067=0x0,_0x3000d0=events[_0xaff4('0x5')];_0x386067<_0x3000d0;_0x386067++){var _0x130b82=events[_0x386067];var _0x565fa5=createListener(_0xaff4('0x6')+_0x130b82,_0x1c5f75);OpenchannelQueueEvents['on'](_0x130b82,_0x565fa5);}};