Built motion from commit (unavailable).|2.4.19
[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 _0xb3a9=['removeListener','register','length','openchannelAccount:','./openchannelAccount.events','save','emit'];(function(_0x4731f2,_0x3644d1){var _0x3df92b=function(_0x1ad57c){while(--_0x1ad57c){_0x4731f2['push'](_0x4731f2['shift']());}};_0x3df92b(++_0x3644d1);}(_0xb3a9,0x6d));var _0x9b3a=function(_0x558f9f,_0x2036ca){_0x558f9f=_0x558f9f-0x0;var _0x4fa18b=_0xb3a9[_0x558f9f];return _0x4fa18b;};'use strict';var OpenchannelAccountEvents=require(_0x9b3a('0x0'));var events=[_0x9b3a('0x1'),'remove','update'];function createListener(_0x52d180,_0x182566){return function(_0x1c1a16){_0x182566[_0x9b3a('0x2')](_0x52d180,_0x1c1a16);};}function removeListener(_0x46e1c9,_0x465c87){return function(){OpenchannelAccountEvents[_0x9b3a('0x3')](_0x46e1c9,_0x465c87);};}exports[_0x9b3a('0x4')]=function(_0x245642){for(var _0x9381fc=0x0,_0x326c13=events[_0x9b3a('0x5')];_0x9381fc<_0x326c13;_0x9381fc++){var _0x1eccf8=events[_0x9381fc];var _0x20c03b=createListener(_0x9b3a('0x6')+_0x1eccf8,_0x245642);OpenchannelAccountEvents['on'](_0x1eccf8,_0x20c03b);}};