7a46a4eafd2df1dcfc15f17bbd02c91bd67beb27
[motion2.git] / server / api / squareProject / squareProject.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 _0x005c=['squareProject:','./squareProject.events','save','remove','emit','removeListener','register','length'];(function(_0x452968,_0x31e391){var _0xb6f9ae=function(_0x263987){while(--_0x263987){_0x452968['push'](_0x452968['shift']());}};_0xb6f9ae(++_0x31e391);}(_0x005c,0x139));var _0xc005=function(_0xd70149,_0x1daa7b){_0xd70149=_0xd70149-0x0;var _0x721074=_0x005c[_0xd70149];return _0x721074;};'use strict';var SquareProjectEvents=require(_0xc005('0x0'));var events=[_0xc005('0x1'),_0xc005('0x2'),'update'];function createListener(_0x2c7bdc,_0x50ca1b){return function(_0x38e574){_0x50ca1b[_0xc005('0x3')](_0x2c7bdc,_0x38e574);};}function removeListener(_0xf8b478,_0x3c5db7){return function(){SquareProjectEvents[_0xc005('0x4')](_0xf8b478,_0x3c5db7);};}exports[_0xc005('0x5')]=function(_0x3c453d){for(var _0xdfc7f5=0x0,_0x323797=events[_0xc005('0x6')];_0xdfc7f5<_0x323797;_0xdfc7f5++){var _0x49b9fe=events[_0xdfc7f5];var _0x26d7c1=createListener(_0xc005('0x7')+_0x49b9fe,_0x3c453d);SquareProjectEvents['on'](_0x49b9fe,_0x26d7c1);}};