1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xae88=['path','rimraf','exports','define','Automation','tools_automations','lodash','util','../../config/logger','moment'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0xae88,0x18c));var _0x8ae8=function(_0x1c77c1,_0x1eff9d){_0x1c77c1=_0x1c77c1-0x0;var _0x3ac2ac=_0xae88[_0x1c77c1];return _0x3ac2ac;};'use strict';var _=require(_0x8ae8('0x0'));var util=require(_0x8ae8('0x1'));var logger=require(_0x8ae8('0x2'))('api');var moment=require(_0x8ae8('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x8ae8('0x4'));var rimraf=require(_0x8ae8('0x5'));var config=require('../../config/environment');var attributes=require('./automation.attributes');module[_0x8ae8('0x6')]=function(_0x2fd318,_0x2562d1){return _0x2fd318[_0x8ae8('0x7')](_0x8ae8('0x8'),attributes,{'tableName':_0x8ae8('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};