Built motion from commit (unavailable).|2.2.0
[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 _0xc610=['update','emit','removeListener','register','openchannelAccount:','./openchannelAccount.events','save','remove'];(function(_0x44a245,_0x4a119c){var _0x1e564c=function(_0x564721){while(--_0x564721){_0x44a245['push'](_0x44a245['shift']());}};_0x1e564c(++_0x4a119c);}(_0xc610,0x12d));var _0x0c61=function(_0x48bbd8,_0x1514d8){_0x48bbd8=_0x48bbd8-0x0;var _0x372eae=_0xc610[_0x48bbd8];return _0x372eae;};'use strict';var OpenchannelAccountEvents=require(_0x0c61('0x0'));var events=[_0x0c61('0x1'),_0x0c61('0x2'),_0x0c61('0x3')];function createListener(_0x551f93,_0x4a4312){return function(_0x11157c){_0x4a4312[_0x0c61('0x4')](_0x551f93,_0x11157c);};}function removeListener(_0xf39c3,_0x125894){return function(){OpenchannelAccountEvents[_0x0c61('0x5')](_0xf39c3,_0x125894);};}exports[_0x0c61('0x6')]=function(_0x45865d){for(var _0x3989ce=0x0,_0x5e6146=events['length'];_0x3989ce<_0x5e6146;_0x3989ce++){var _0x48375e=events[_0x3989ce];var _0x2f3fb4=createListener(_0x0c61('0x7')+_0x48375e,_0x45865d);OpenchannelAccountEvents['on'](_0x48375e,_0x2f3fb4);}};