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 _0xea54=['../../config/logger','path','../../config/environment','exports','define','Automation','tools_automations'];(function(_0xe59404,_0xc31864){var _0x23a1e1=function(_0x46d8e7){while(--_0x46d8e7){_0xe59404['push'](_0xe59404['shift']());}};_0x23a1e1(++_0xc31864);}(_0xea54,0x142));var _0x4ea5=function(_0x236936,_0x40c7b3){_0x236936=_0x236936-0x0;var _0x12d33e=_0xea54[_0x236936];return _0x12d33e;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4ea5('0x0'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4ea5('0x1'));var rimraf=require('rimraf');var config=require(_0x4ea5('0x2'));var attributes=require('./automation.attributes');module[_0x4ea5('0x3')]=function(_0xc3e1b4,_0x57b36e){return _0xc3e1b4[_0x4ea5('0x4')](_0x4ea5('0x5'),attributes,{'tableName':_0x4ea5('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};