Built motion from commit (unavailable).|2.5.11
[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 _0xa102=['emit','removeListener','register','openchannelQueue:','./openchannelQueue.events','save','update'];(function(_0xaa6a4,_0x64b067){var _0xdc31a4=function(_0x4269d8){while(--_0x4269d8){_0xaa6a4['push'](_0xaa6a4['shift']());}};_0xdc31a4(++_0x64b067);}(_0xa102,0x1b6));var _0x2a10=function(_0x50aa2e,_0xfbd6f0){_0x50aa2e=_0x50aa2e-0x0;var _0x5e07f0=_0xa102[_0x50aa2e];return _0x5e07f0;};'use strict';var OpenchannelQueueEvents=require(_0x2a10('0x0'));var events=[_0x2a10('0x1'),'remove',_0x2a10('0x2')];function createListener(_0xc28c,_0x28a8d8){return function(_0x184460){_0x28a8d8[_0x2a10('0x3')](_0xc28c,_0x184460);};}function removeListener(_0x149c80,_0x5c4e0f){return function(){OpenchannelQueueEvents[_0x2a10('0x4')](_0x149c80,_0x5c4e0f);};}exports[_0x2a10('0x5')]=function(_0x5e4f97){for(var _0x3f3e9b=0x0,_0x57bb61=events['length'];_0x3f3e9b<_0x57bb61;_0x3f3e9b++){var _0x343e53=events[_0x3f3e9b];var _0x48f1d7=createListener(_0x2a10('0x6')+_0x343e53,_0x5e4f97);OpenchannelQueueEvents['on'](_0x343e53,_0x48f1d7);}};