Built motion from commit 753c950e.|2.5.42
[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 _0xc788=['./openchannelAccount.events','save','remove','emit','register','length','openchannelAccount:'];(function(_0x22f8ab,_0x15d8ff){var _0x2a70e5=function(_0x5e6895){while(--_0x5e6895){_0x22f8ab['push'](_0x22f8ab['shift']());}};_0x2a70e5(++_0x15d8ff);}(_0xc788,0xc4));var _0x8c78=function(_0x3e1555,_0xd901c2){_0x3e1555=_0x3e1555-0x0;var _0x14824b=_0xc788[_0x3e1555];return _0x14824b;};'use strict';var OpenchannelAccountEvents=require(_0x8c78('0x0'));var events=[_0x8c78('0x1'),_0x8c78('0x2'),'update'];function createListener(_0x4ce125,_0x1c7ff3){return function(_0x1af8e2){_0x1c7ff3[_0x8c78('0x3')](_0x4ce125,_0x1af8e2);};}function removeListener(_0x1d0670,_0x386f0a){return function(){OpenchannelAccountEvents['removeListener'](_0x1d0670,_0x386f0a);};}exports[_0x8c78('0x4')]=function(_0x4555da){for(var _0x329152=0x0,_0x1ac27f=events[_0x8c78('0x5')];_0x329152<_0x1ac27f;_0x329152++){var _0x4d54a5=events[_0x329152];var _0x247188=createListener(_0x8c78('0x6')+_0x4d54a5,_0x4555da);OpenchannelAccountEvents['on'](_0x4d54a5,_0x247188);}};