Built motion from commit (unavailable).|2.5.4
[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 _0x82c4=['removeListener','length','faxAccount:','./faxAccount.events','save','remove','update'];(function(_0x1480cf,_0x652244){var _0x418d4c=function(_0x39ffc0){while(--_0x39ffc0){_0x1480cf['push'](_0x1480cf['shift']());}};_0x418d4c(++_0x652244);}(_0x82c4,0x1ca));var _0x482c=function(_0x54de48,_0x2310da){_0x54de48=_0x54de48-0x0;var _0x4e8dec=_0x82c4[_0x54de48];return _0x4e8dec;};'use strict';var FaxAccountEvents=require(_0x482c('0x0'));var events=[_0x482c('0x1'),_0x482c('0x2'),_0x482c('0x3')];function createListener(_0x18d056,_0x69706f){return function(_0x863ea9){_0x69706f['emit'](_0x18d056,_0x863ea9);};}function removeListener(_0x16b0f8,_0x5f4dee){return function(){FaxAccountEvents[_0x482c('0x4')](_0x16b0f8,_0x5f4dee);};}exports['register']=function(_0x477cf4){for(var _0x5d7c76=0x0,_0xfdb92=events[_0x482c('0x5')];_0x5d7c76<_0xfdb92;_0x5d7c76++){var _0x35cdab=events[_0x5d7c76];var _0x1c10f2=createListener(_0x482c('0x6')+_0x35cdab,_0x477cf4);FaxAccountEvents['on'](_0x35cdab,_0x1c10f2);}};