Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / smsAccount / smsAccount.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 _0x06a2=['smsAccount:','./smsAccount.events','save','update','emit','removeListener','length'];(function(_0x1839e2,_0x37be65){var _0x59f1fa=function(_0x21e81a){while(--_0x21e81a){_0x1839e2['push'](_0x1839e2['shift']());}};_0x59f1fa(++_0x37be65);}(_0x06a2,0x1ac));var _0x206a=function(_0x45a932,_0x52247e){_0x45a932=_0x45a932-0x0;var _0xe66c87=_0x06a2[_0x45a932];return _0xe66c87;};'use strict';var SmsAccountEvents=require(_0x206a('0x0'));var events=[_0x206a('0x1'),'remove',_0x206a('0x2')];function createListener(_0x2ace1a,_0x1b25c5){return function(_0x3a053a){_0x1b25c5[_0x206a('0x3')](_0x2ace1a,_0x3a053a);};}function removeListener(_0x2adaf5,_0x13c2c8){return function(){SmsAccountEvents[_0x206a('0x4')](_0x2adaf5,_0x13c2c8);};}exports['register']=function(_0x41386d){for(var _0x17bccc=0x0,_0x94730d=events[_0x206a('0x5')];_0x17bccc<_0x94730d;_0x17bccc++){var _0x46fcdb=events[_0x17bccc];var _0xc084ad=createListener(_0x206a('0x6')+_0x46fcdb,_0x41386d);SmsAccountEvents['on'](_0x46fcdb,_0xc084ad);}};