Built motion from commit (unavailable).|2.4.17
[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 _0x4c29=['removeListener','register','length','openchannelAccount:','./openchannelAccount.events','save','update','emit'];(function(_0xb91b78,_0xb3890d){var _0x1bc3e8=function(_0xb70afb){while(--_0xb70afb){_0xb91b78['push'](_0xb91b78['shift']());}};_0x1bc3e8(++_0xb3890d);}(_0x4c29,0x16c));var _0x94c2=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0x4c29[_0x4b055c];return _0x4b62bb;};'use strict';var OpenchannelAccountEvents=require(_0x94c2('0x0'));var events=[_0x94c2('0x1'),'remove',_0x94c2('0x2')];function createListener(_0x1c8044,_0x233fef){return function(_0x5dcea7){_0x233fef[_0x94c2('0x3')](_0x1c8044,_0x5dcea7);};}function removeListener(_0x3aa4cf,_0x2d5ac1){return function(){OpenchannelAccountEvents[_0x94c2('0x4')](_0x3aa4cf,_0x2d5ac1);};}exports[_0x94c2('0x5')]=function(_0x478188){for(var _0x297223=0x0,_0x1ecef4=events[_0x94c2('0x6')];_0x297223<_0x1ecef4;_0x297223++){var _0x4afd91=events[_0x297223];var _0x55bdd5=createListener(_0x94c2('0x7')+_0x4afd91,_0x478188);OpenchannelAccountEvents['on'](_0x4afd91,_0x55bdd5);}};