639fb8769cf735fdbb8071955597587a0403c6be
[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 _0xb10d=['operator','AnyConditions','Action','data2','data3','data5','data6','GetTrigger','../client','getTriggers','channel','status','Condition','AllConditions','field'];(function(_0x307bf6,_0x55bdd5){var _0x2878fc=function(_0x4fa44f){while(--_0x4fa44f){_0x307bf6['push'](_0x307bf6['shift']());}};_0x2878fc(++_0x55bdd5);}(_0xb10d,0x17f));var _0xdb10=function(_0x5e2aad,_0x1c0783){_0x5e2aad=_0x5e2aad-0x0;var _0x20c5d1=_0xb10d[_0x5e2aad];return _0x20c5d1;};'use strict';var client=require(_0xdb10('0x0'));exports[_0xdb10('0x1')]=function(_0x36d1ca){return function(_0x54dcbc){return client['Request']('GetTrigger',{'options':{'raw':![],'attributes':['id','name',_0xdb10('0x2'),_0xdb10('0x3')],'include':[{'model':_0xdb10('0x4'),'as':_0xdb10('0x5'),'attributes':['id',_0xdb10('0x6'),_0xdb10('0x7'),'value']},{'model':'Condition','as':_0xdb10('0x8'),'attributes':['id','field',_0xdb10('0x7'),'value']},{'model':_0xdb10('0x9'),'as':'Actions','attributes':['id','action','data1',_0xdb10('0xa'),_0xdb10('0xb'),'data4',_0xdb10('0xc'),_0xdb10('0xd'),'data7']}]},'log':_0xdb10('0xe')});};};