79c4e5a9b23f105d9e61684e70f895e8f234d406
[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 _0xa9b0=['Automation','tools_automations','lodash','api','moment','bluebird','request-promise','path','../../config/environment','./automation.attributes','exports','define'];(function(_0x323123,_0x1f0c4e){var _0x2a5976=function(_0x2e5776){while(--_0x2e5776){_0x323123['push'](_0x323123['shift']());}};_0x2a5976(++_0x1f0c4e);}(_0xa9b0,0x86));var _0x0a9b=function(_0x207a02,_0x278c56){_0x207a02=_0x207a02-0x0;var _0xd995c3=_0xa9b0[_0x207a02];return _0xd995c3;};'use strict';var _=require(_0x0a9b('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x0a9b('0x1'));var moment=require(_0x0a9b('0x2'));var BPromise=require(_0x0a9b('0x3'));var rp=require(_0x0a9b('0x4'));var fs=require('fs');var path=require(_0x0a9b('0x5'));var rimraf=require('rimraf');var config=require(_0x0a9b('0x6'));var attributes=require(_0x0a9b('0x7'));module[_0x0a9b('0x8')]=function(_0x192bf0,_0x8c4988){return _0x192bf0[_0x0a9b('0x9')](_0x0a9b('0xa'),attributes,{'tableName':_0x0a9b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};