Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / automation / automation.model.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 _0xdbbc=['rimraf','../../config/environment','./automation.attributes','exports','define','Automation','tools_automations','lodash','util','../../config/logger','api','moment'];(function(_0x51d3b0,_0x8a314b){var _0x60d8fd=function(_0x18ef02){while(--_0x18ef02){_0x51d3b0['push'](_0x51d3b0['shift']());}};_0x60d8fd(++_0x8a314b);}(_0xdbbc,0x1b7));var _0xcdbb=function(_0x2e0998,_0x2e4b2c){_0x2e0998=_0x2e0998-0x0;var _0x7ce4bc=_0xdbbc[_0x2e0998];return _0x7ce4bc;};'use strict';var _=require(_0xcdbb('0x0'));var util=require(_0xcdbb('0x1'));var logger=require(_0xcdbb('0x2'))(_0xcdbb('0x3'));var moment=require(_0xcdbb('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xcdbb('0x5'));var config=require(_0xcdbb('0x6'));var attributes=require(_0xcdbb('0x7'));module[_0xcdbb('0x8')]=function(_0x2955f9,_0x59e3bd){return _0x2955f9[_0xcdbb('0x9')](_0xcdbb('0xa'),attributes,{'tableName':_0xcdbb('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};