863ab81d2bf5e77a51e603e00a459d972bcf62cb
[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 _0x598b=['data1','data2','data3','data5','data6','data7','../client','getTriggers','GetTrigger','name','channel','status','AllConditions','field','operator','value','AnyConditions','Action','action'];(function(_0x172137,_0x51e070){var _0x5d0b20=function(_0x1c7e96){while(--_0x1c7e96){_0x172137['push'](_0x172137['shift']());}};_0x5d0b20(++_0x51e070);}(_0x598b,0x182));var _0xb598=function(_0x499325,_0x5988a7){_0x499325=_0x499325-0x0;var _0x1d81d5=_0x598b[_0x499325];return _0x1d81d5;};'use strict';var client=require(_0xb598('0x0'));exports[_0xb598('0x1')]=function(_0x1ce26b){return function(_0x45c664){return client['Request'](_0xb598('0x2'),{'options':{'raw':![],'attributes':['id',_0xb598('0x3'),_0xb598('0x4'),_0xb598('0x5')],'include':[{'model':'Condition','as':_0xb598('0x6'),'attributes':['id',_0xb598('0x7'),_0xb598('0x8'),_0xb598('0x9')]},{'model':'Condition','as':_0xb598('0xa'),'attributes':['id',_0xb598('0x7'),_0xb598('0x8'),_0xb598('0x9')]},{'model':_0xb598('0xb'),'as':'Actions','attributes':['id',_0xb598('0xc'),_0xb598('0xd'),_0xb598('0xe'),_0xb598('0xf'),'data4',_0xb598('0x10'),_0xb598('0x11'),_0xb598('0x12')]}]},'log':_0xb598('0x2')});};};