Built motion from commit 3e059bc2.|2.5.32
[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 _0xce45=['removeListener','register','./squareProject.events','save','update','emit'];(function(_0x35d0e2,_0x43b4d4){var _0x429b72=function(_0x1cc544){while(--_0x1cc544){_0x35d0e2['push'](_0x35d0e2['shift']());}};_0x429b72(++_0x43b4d4);}(_0xce45,0x110));var _0x5ce4=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0xce45[_0x4b369d];return _0x571a98;};'use strict';var SquareProjectEvents=require(_0x5ce4('0x0'));var events=[_0x5ce4('0x1'),'remove',_0x5ce4('0x2')];function createListener(_0x1f30ee,_0x1450f0){return function(_0x441b14){_0x1450f0[_0x5ce4('0x3')](_0x1f30ee,_0x441b14);};}function removeListener(_0x49fcfb,_0x5cee40){return function(){SquareProjectEvents[_0x5ce4('0x4')](_0x49fcfb,_0x5cee40);};}exports[_0x5ce4('0x5')]=function(_0x4b013e){for(var _0x1d59b5=0x0,_0x327008=events['length'];_0x1d59b5<_0x327008;_0x1d59b5++){var _0x4374dd=events[_0x1d59b5];var _0x44778e=createListener('squareProject:'+_0x4374dd,_0x4b013e);SquareProjectEvents['on'](_0x4374dd,_0x44778e);}};