Built motion from commit (unavailable).|2.5.30
[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 _0xc2c3=['save','remove','register','length','./openchannelAccount.events'];(function(_0x45783c,_0x49c56d){var _0x1161da=function(_0x3c5d41){while(--_0x3c5d41){_0x45783c['push'](_0x45783c['shift']());}};_0x1161da(++_0x49c56d);}(_0xc2c3,0x1a8));var _0x3c2c=function(_0x31580b,_0x6c1ba7){_0x31580b=_0x31580b-0x0;var _0x32faea=_0xc2c3[_0x31580b];return _0x32faea;};'use strict';var OpenchannelAccountEvents=require(_0x3c2c('0x0'));var events=[_0x3c2c('0x1'),_0x3c2c('0x2'),'update'];function createListener(_0x5343af,_0x2aab48){return function(_0x4c77ea){_0x2aab48['emit'](_0x5343af,_0x4c77ea);};}function removeListener(_0xf29ed8,_0x229e86){return function(){OpenchannelAccountEvents['removeListener'](_0xf29ed8,_0x229e86);};}exports[_0x3c2c('0x3')]=function(_0x3ca127){for(var _0x2407b0=0x0,_0x1e4961=events[_0x3c2c('0x4')];_0x2407b0<_0x1e4961;_0x2407b0++){var _0x1a83c5=events[_0x2407b0];var _0x4e4a51=createListener('openchannelAccount:'+_0x1a83c5,_0x3ca127);OpenchannelAccountEvents['on'](_0x1a83c5,_0x4e4a51);}};