Built motion from commit 3e059bc2.|2.5.32
[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 _0x725c=['GetTrigger','../client','getTriggers','Request','name','status','Condition','AllConditions','operator','value','AnyConditions','field','Action','Actions','action','data1','data3','data5','data6','data7'];(function(_0x223f38,_0x4ece37){var _0x4f18b7=function(_0x502d2c){while(--_0x502d2c){_0x223f38['push'](_0x223f38['shift']());}};_0x4f18b7(++_0x4ece37);}(_0x725c,0x155));var _0xc725=function(_0x3441d5,_0x1ba541){_0x3441d5=_0x3441d5-0x0;var _0x45fdeb=_0x725c[_0x3441d5];return _0x45fdeb;};'use strict';var client=require(_0xc725('0x0'));exports[_0xc725('0x1')]=function(_0x38679d){return function(_0x5ba3b9){return client[_0xc725('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0xc725('0x3'),'channel',_0xc725('0x4')],'include':[{'model':_0xc725('0x5'),'as':_0xc725('0x6'),'attributes':['id','field',_0xc725('0x7'),_0xc725('0x8')]},{'model':'Condition','as':_0xc725('0x9'),'attributes':['id',_0xc725('0xa'),_0xc725('0x7'),'value']},{'model':_0xc725('0xb'),'as':_0xc725('0xc'),'attributes':['id',_0xc725('0xd'),_0xc725('0xe'),'data2',_0xc725('0xf'),'data4',_0xc725('0x10'),_0xc725('0x11'),_0xc725('0x12')]}]},'log':_0xc725('0x13')});};};