b51119b72463b68f2b19c3bbe34bf5d578be122a
[motion2.git] / server / services / ami / rpc / trigger.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 _0x0260=['action','data1','data2','data3','data6','data7','GetTrigger','../client','getTriggers','name','channel','status','Condition','AllConditions','field','operator','value','Actions'];(function(_0xefb450,_0x32cacc){var _0x35ff77=function(_0x2076ad){while(--_0x2076ad){_0xefb450['push'](_0xefb450['shift']());}};_0x35ff77(++_0x32cacc);}(_0x0260,0x127));var _0x0026=function(_0x75f869,_0x3690d6){_0x75f869=_0x75f869-0x0;var _0x10af8b=_0x0260[_0x75f869];return _0x10af8b;};'use strict';var client=require(_0x0026('0x0'));exports[_0x0026('0x1')]=function(_0x4b26db){return function(_0x9b046e){return client['Request']('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x0026('0x2'),_0x0026('0x3'),_0x0026('0x4')],'include':[{'model':_0x0026('0x5'),'as':_0x0026('0x6'),'attributes':['id',_0x0026('0x7'),_0x0026('0x8'),_0x0026('0x9')]},{'model':_0x0026('0x5'),'as':'AnyConditions','attributes':['id',_0x0026('0x7'),_0x0026('0x8'),'value']},{'model':'Action','as':_0x0026('0xa'),'attributes':['id',_0x0026('0xb'),_0x0026('0xc'),_0x0026('0xd'),_0x0026('0xe'),'data4','data5',_0x0026('0xf'),_0x0026('0x10')]}]},'log':_0x0026('0x11')});};};