Built motion from commit 97153652.|2.6.26
[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 _0x6575=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./automation.attributes','exports','define','Automation','tools_automations'];(function(_0x3829fa,_0x47644a){var _0x3510c8=function(_0x4be513){while(--_0x4be513){_0x3829fa['push'](_0x3829fa['shift']());}};_0x3510c8(++_0x47644a);}(_0x6575,0xa9));var _0x5657=function(_0x11005e,_0x20c3d2){_0x11005e=_0x11005e-0x0;var _0x29338f=_0x6575[_0x11005e];return _0x29338f;};'use strict';var _=require(_0x5657('0x0'));var util=require(_0x5657('0x1'));var logger=require(_0x5657('0x2'))(_0x5657('0x3'));var moment=require(_0x5657('0x4'));var BPromise=require(_0x5657('0x5'));var rp=require(_0x5657('0x6'));var fs=require('fs');var path=require(_0x5657('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x5657('0x8'));module[_0x5657('0x9')]=function(_0x3eedc7,_0x516bc1){return _0x3eedc7[_0x5657('0xa')](_0x5657('0xb'),attributes,{'tableName':_0x5657('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};