b7ec1aaa1a3f910958a2ce0d2d5ebf68ea5f92e3
[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 _0x95cb=['AllConditions','field','operator','AnyConditions','value','Action','Actions','data1','data3','data5','data6','data7','../client','getTriggers','GetTrigger','name','channel','status','Condition'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x95cb,0x91));var _0xb95c=function(_0x446e15,_0x30ecb1){_0x446e15=_0x446e15-0x0;var _0x4ed3ce=_0x95cb[_0x446e15];return _0x4ed3ce;};'use strict';var client=require(_0xb95c('0x0'));exports[_0xb95c('0x1')]=function(_0x2c727d){return function(_0x5357f7){return client['Request'](_0xb95c('0x2'),{'options':{'raw':![],'attributes':['id',_0xb95c('0x3'),_0xb95c('0x4'),_0xb95c('0x5')],'include':[{'model':_0xb95c('0x6'),'as':_0xb95c('0x7'),'attributes':['id',_0xb95c('0x8'),_0xb95c('0x9'),'value']},{'model':_0xb95c('0x6'),'as':_0xb95c('0xa'),'attributes':['id','field',_0xb95c('0x9'),_0xb95c('0xb')]},{'model':_0xb95c('0xc'),'as':_0xb95c('0xd'),'attributes':['id','action',_0xb95c('0xe'),'data2',_0xb95c('0xf'),'data4',_0xb95c('0x10'),_0xb95c('0x11'),_0xb95c('0x12')]}]},'log':'GetTrigger'});};};