Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0x2298=['register','./openchannelAccount.events','update','emit','removeListener'];(function(_0x1c55f3,_0x27d3ff){var _0x2ace11=function(_0x1efa11){while(--_0x1efa11){_0x1c55f3['push'](_0x1c55f3['shift']());}};_0x2ace11(++_0x27d3ff);}(_0x2298,0x1dc));var _0x8229=function(_0x55e08b,_0x421620){_0x55e08b=_0x55e08b-0x0;var _0xd1a7ff=_0x2298[_0x55e08b];return _0xd1a7ff;};'use strict';var OpenchannelAccountEvents=require(_0x8229('0x0'));var events=['save','remove',_0x8229('0x1')];function createListener(_0x530886,_0x1f40d5){return function(_0x2d52d6){_0x1f40d5[_0x8229('0x2')](_0x530886,_0x2d52d6);};}function removeListener(_0x15f01a,_0x4cb2e0){return function(){OpenchannelAccountEvents[_0x8229('0x3')](_0x15f01a,_0x4cb2e0);};}exports[_0x8229('0x4')]=function(_0x33b790){for(var _0x5054a7=0x0,_0x3d8dcc=events['length'];_0x5054a7<_0x3d8dcc;_0x5054a7++){var _0x324556=events[_0x5054a7];var _0x3fa687=createListener('openchannelAccount:'+_0x324556,_0x33b790);OpenchannelAccountEvents['on'](_0x324556,_0x3fa687);}};