Built motion from commit (unavailable).|2.5.21
[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 _0xcf60=['removeListener','register','length','openchannelAccount:','./openchannelAccount.events','save','update','emit'];(function(_0x100894,_0x416617){var _0x522185=function(_0x4fe879){while(--_0x4fe879){_0x100894['push'](_0x100894['shift']());}};_0x522185(++_0x416617);}(_0xcf60,0x15c));var _0x0cf6=function(_0x3e74cc,_0xfd29a4){_0x3e74cc=_0x3e74cc-0x0;var _0x4f327a=_0xcf60[_0x3e74cc];return _0x4f327a;};'use strict';var OpenchannelAccountEvents=require(_0x0cf6('0x0'));var events=[_0x0cf6('0x1'),'remove',_0x0cf6('0x2')];function createListener(_0x59e1da,_0x1834aa){return function(_0x5604b8){_0x1834aa[_0x0cf6('0x3')](_0x59e1da,_0x5604b8);};}function removeListener(_0x2ef43f,_0x5b68e5){return function(){OpenchannelAccountEvents[_0x0cf6('0x4')](_0x2ef43f,_0x5b68e5);};}exports[_0x0cf6('0x5')]=function(_0xaf94e0){for(var _0x4d725b=0x0,_0x316365=events[_0x0cf6('0x6')];_0x4d725b<_0x316365;_0x4d725b++){var _0x38b064=events[_0x4d725b];var _0x42692c=createListener(_0x0cf6('0x7')+_0x38b064,_0xaf94e0);OpenchannelAccountEvents['on'](_0x38b064,_0x42692c);}};