Built motion from commit (unavailable).|2.5.2
[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 _0xecf5=['remove','update','emit','length','openchannelAccount:','save'];(function(_0x555aea,_0x4e6382){var _0x3dd3ed=function(_0x14f70b){while(--_0x14f70b){_0x555aea['push'](_0x555aea['shift']());}};_0x3dd3ed(++_0x4e6382);}(_0xecf5,0x10d));var _0x5ecf=function(_0xc554fa,_0x4b3027){_0xc554fa=_0xc554fa-0x0;var _0x9df8cc=_0xecf5[_0xc554fa];return _0x9df8cc;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0x5ecf('0x0'),_0x5ecf('0x1'),_0x5ecf('0x2')];function createListener(_0x2c02ef,_0x2f6e5c){return function(_0x37bdf9){_0x2f6e5c[_0x5ecf('0x3')](_0x2c02ef,_0x37bdf9);};}function removeListener(_0x5ac268,_0x2ec2e2){return function(){OpenchannelAccountEvents['removeListener'](_0x5ac268,_0x2ec2e2);};}exports['register']=function(_0xa08a52){for(var _0x39e102=0x0,_0x54be23=events[_0x5ecf('0x4')];_0x39e102<_0x54be23;_0x39e102++){var _0x475c64=events[_0x39e102];var _0x3f74d9=createListener(_0x5ecf('0x5')+_0x475c64,_0xa08a52);OpenchannelAccountEvents['on'](_0x475c64,_0x3f74d9);}};