aa1c5204380d290b90e4c142bb1ba64639839bc7
[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 _0xbaf9=['data4','data7','../client','getTriggers','Request','GetTrigger','name','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','action','data1','data2'];(function(_0x1beb1c,_0x4e7387){var _0x435daf=function(_0x4eefff){while(--_0x4eefff){_0x1beb1c['push'](_0x1beb1c['shift']());}};_0x435daf(++_0x4e7387);}(_0xbaf9,0x132));var _0x9baf=function(_0x5c26fe,_0x112d7c){_0x5c26fe=_0x5c26fe-0x0;var _0x5a6e53=_0xbaf9[_0x5c26fe];return _0x5a6e53;};'use strict';var client=require(_0x9baf('0x0'));exports[_0x9baf('0x1')]=function(_0x3e85c6){return function(_0x429f2f){return client[_0x9baf('0x2')](_0x9baf('0x3'),{'options':{'raw':![],'attributes':['id',_0x9baf('0x4'),'channel',_0x9baf('0x5')],'include':[{'model':_0x9baf('0x6'),'as':_0x9baf('0x7'),'attributes':['id',_0x9baf('0x8'),_0x9baf('0x9'),_0x9baf('0xa')]},{'model':_0x9baf('0x6'),'as':_0x9baf('0xb'),'attributes':['id',_0x9baf('0x8'),_0x9baf('0x9'),_0x9baf('0xa')]},{'model':_0x9baf('0xc'),'as':_0x9baf('0xd'),'attributes':['id',_0x9baf('0xe'),_0x9baf('0xf'),_0x9baf('0x10'),'data3',_0x9baf('0x11'),'data5','data6',_0x9baf('0x12')]}]},'log':_0x9baf('0x3')});};};