Built motion from commit (unavailable).|2.5.14
[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 _0xa1c4=['save','remove','emit','removeListener','register','length'];(function(_0x531cd4,_0x1ecf97){var _0x450b20=function(_0x5e99e8){while(--_0x5e99e8){_0x531cd4['push'](_0x531cd4['shift']());}};_0x450b20(++_0x1ecf97);}(_0xa1c4,0x108));var _0x4a1c=function(_0x16ba74,_0x2ebcfa){_0x16ba74=_0x16ba74-0x0;var _0x4333a6=_0xa1c4[_0x16ba74];return _0x4333a6;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0x4a1c('0x0'),_0x4a1c('0x1'),'update'];function createListener(_0x1b0d8c,_0x10743a){return function(_0x457a44){_0x10743a[_0x4a1c('0x2')](_0x1b0d8c,_0x457a44);};}function removeListener(_0x158d76,_0x54f1c8){return function(){OpenchannelAccountEvents[_0x4a1c('0x3')](_0x158d76,_0x54f1c8);};}exports[_0x4a1c('0x4')]=function(_0x394bc6){for(var _0x48a49f=0x0,_0x504d49=events[_0x4a1c('0x5')];_0x48a49f<_0x504d49;_0x48a49f++){var _0x294c4d=events[_0x48a49f];var _0x2bb0d2=createListener('openchannelAccount:'+_0x294c4d,_0x394bc6);OpenchannelAccountEvents['on'](_0x294c4d,_0x2bb0d2);}};