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 _0x4c95=['removeListener','./squareProject.events','save','remove','update'];(function(_0x494bbe,_0x530b95){var _0x3874b7=function(_0x27e0a8){while(--_0x27e0a8){_0x494bbe['push'](_0x494bbe['shift']());}};_0x3874b7(++_0x530b95);}(_0x4c95,0x74));var _0x54c9=function(_0x4192d9,_0x2a4322){_0x4192d9=_0x4192d9-0x0;var _0x3bc0a2=_0x4c95[_0x4192d9];return _0x3bc0a2;};'use strict';var SquareProjectEvents=require(_0x54c9('0x0'));var events=[_0x54c9('0x1'),_0x54c9('0x2'),_0x54c9('0x3')];function createListener(_0x564c63,_0xd64bca){return function(_0x5df5a2){_0xd64bca['emit'](_0x564c63,_0x5df5a2);};}function removeListener(_0x572f68,_0x451340){return function(){SquareProjectEvents[_0x54c9('0x4')](_0x572f68,_0x451340);};}exports['register']=function(_0x5f5a56){for(var _0x5c2993=0x0,_0x4b7672=events['length'];_0x5c2993<_0x4b7672;_0x5c2993++){var _0x474aac=events[_0x5c2993];var _0x26d84e=createListener('squareProject:'+_0x474aac,_0x5f5a56);SquareProjectEvents['on'](_0x474aac,_0x26d84e);}};