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 _0x032a=['save','update','emit','removeListener','register'];(function(_0x15f817,_0x4f356f){var _0x50decc=function(_0xcdc95e){while(--_0xcdc95e){_0x15f817['push'](_0x15f817['shift']());}};_0x50decc(++_0x4f356f);}(_0x032a,0xf0));var _0xa032=function(_0x212fcc,_0x1a8867){_0x212fcc=_0x212fcc-0x0;var _0x4d8190=_0x032a[_0x212fcc];return _0x4d8190;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xa032('0x0'),'remove',_0xa032('0x1')];function createListener(_0x39053e,_0x40e5b5){return function(_0x2ee4ef){_0x40e5b5[_0xa032('0x2')](_0x39053e,_0x2ee4ef);};}function removeListener(_0x23ad84,_0x24612f){return function(){OpenchannelAccountEvents[_0xa032('0x3')](_0x23ad84,_0x24612f);};}exports[_0xa032('0x4')]=function(_0x2b1445){for(var _0x43d0f5=0x0,_0x40128a=events['length'];_0x43d0f5<_0x40128a;_0x43d0f5++){var _0x616437=events[_0x43d0f5];var _0x4a5d8e=createListener('openchannelAccount:'+_0x616437,_0x2b1445);OpenchannelAccountEvents['on'](_0x616437,_0x4a5d8e);}};