1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xd8fb=['./squareProject.events','save','remove','update','emit','removeListener','register','length','squareProject:'];(function(_0x5d0813,_0x57cc54){var _0x2db6da=function(_0x2eff89){while(--_0x2eff89){_0x5d0813['push'](_0x5d0813['shift']());}};_0x2db6da(++_0x57cc54);}(_0xd8fb,0x99));var _0xbd8f=function(_0x33b221,_0x5f3de5){_0x33b221=_0x33b221-0x0;var _0x1f2613=_0xd8fb[_0x33b221];return _0x1f2613;};'use strict';var SquareProjectEvents=require(_0xbd8f('0x0'));var events=[_0xbd8f('0x1'),_0xbd8f('0x2'),_0xbd8f('0x3')];function createListener(_0x52724c,_0x5ea933){return function(_0x4e9545){_0x5ea933[_0xbd8f('0x4')](_0x52724c,_0x4e9545);};}function removeListener(_0x43d177,_0x53cccc){return function(){SquareProjectEvents[_0xbd8f('0x5')](_0x43d177,_0x53cccc);};}exports[_0xbd8f('0x6')]=function(_0x5543b2){for(var _0x33d541=0x0,_0x4e97cf=events[_0xbd8f('0x7')];_0x33d541<_0x4e97cf;_0x33d541++){var _0x578499=events[_0x33d541];var _0x197827=createListener(_0xbd8f('0x8')+_0x578499,_0x5543b2);SquareProjectEvents['on'](_0x578499,_0x197827);}};