Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / faxAccount / faxAccount.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 _0xd6f4=['removeListener','faxAccount:','./faxAccount.events','remove','update'];(function(_0x247fa1,_0x4ec37c){var _0x244f35=function(_0xfb98be){while(--_0xfb98be){_0x247fa1['push'](_0x247fa1['shift']());}};_0x244f35(++_0x4ec37c);}(_0xd6f4,0x1ce));var _0x4d6f=function(_0x15502b,_0x51eda4){_0x15502b=_0x15502b-0x0;var _0x124f04=_0xd6f4[_0x15502b];return _0x124f04;};'use strict';var FaxAccountEvents=require(_0x4d6f('0x0'));var events=['save',_0x4d6f('0x1'),_0x4d6f('0x2')];function createListener(_0x9ae4c9,_0x4a725a){return function(_0x1be2fd){_0x4a725a['emit'](_0x9ae4c9,_0x1be2fd);};}function removeListener(_0x367cea,_0x541641){return function(){FaxAccountEvents[_0x4d6f('0x3')](_0x367cea,_0x541641);};}exports['register']=function(_0x2e52dd){for(var _0x39a430=0x0,_0x3dad48=events['length'];_0x39a430<_0x3dad48;_0x39a430++){var _0x4db7b6=events[_0x39a430];var _0xe0b255=createListener(_0x4d6f('0x4')+_0x4db7b6,_0x2e52dd);FaxAccountEvents['on'](_0x4db7b6,_0xe0b255);}};