Built motion from commit ddca4d0d.|2.5.47
[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 _0x765b=['update','emit','openchannelAccount:'];(function(_0x382760,_0x59c55f){var _0x3ca405=function(_0x21fae1){while(--_0x21fae1){_0x382760['push'](_0x382760['shift']());}};_0x3ca405(++_0x59c55f);}(_0x765b,0x18c));var _0xb765=function(_0x5da0d9,_0x49ee54){_0x5da0d9=_0x5da0d9-0x0;var _0x4b6d2f=_0x765b[_0x5da0d9];return _0x4b6d2f;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=['save','remove',_0xb765('0x0')];function createListener(_0x58686f,_0x1db469){return function(_0x530821){_0x1db469[_0xb765('0x1')](_0x58686f,_0x530821);};}function removeListener(_0x97367d,_0x358e6e){return function(){OpenchannelAccountEvents['removeListener'](_0x97367d,_0x358e6e);};}exports['register']=function(_0x58195b){for(var _0x5441a3=0x0,_0x339593=events['length'];_0x5441a3<_0x339593;_0x5441a3++){var _0x179545=events[_0x5441a3];var _0x3d56b3=createListener(_0xb765('0x2')+_0x179545,_0x58195b);OpenchannelAccountEvents['on'](_0x179545,_0x3d56b3);}};