Built motion from commit (unavailable).|2.5.10
[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 _0x5063=['emit','removeListener','length','openchannelQueue:','./openchannelQueue.events','remove','update'];(function(_0x148278,_0x4371ba){var _0x2add73=function(_0xfdf204){while(--_0xfdf204){_0x148278['push'](_0x148278['shift']());}};_0x2add73(++_0x4371ba);}(_0x5063,0x177));var _0x3506=function(_0x274d51,_0x14fb4d){_0x274d51=_0x274d51-0x0;var _0x24be6b=_0x5063[_0x274d51];return _0x24be6b;};'use strict';var OpenchannelQueueEvents=require(_0x3506('0x0'));var events=['save',_0x3506('0x1'),_0x3506('0x2')];function createListener(_0x3d4b33,_0x38449f){return function(_0x8cbf8f){_0x38449f[_0x3506('0x3')](_0x3d4b33,_0x8cbf8f);};}function removeListener(_0x1c7129,_0x2b2fbf){return function(){OpenchannelQueueEvents[_0x3506('0x4')](_0x1c7129,_0x2b2fbf);};}exports['register']=function(_0x300740){for(var _0x1f21e9=0x0,_0x473818=events[_0x3506('0x5')];_0x1f21e9<_0x473818;_0x1f21e9++){var _0x521b35=events[_0x1f21e9];var _0x59730c=createListener(_0x3506('0x6')+_0x521b35,_0x300740);OpenchannelQueueEvents['on'](_0x521b35,_0x59730c);}};