Built motion from commit 9d0783e6.|2.6.13
[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 _0xa991=['api','moment','bluebird','request-promise','path','../../config/environment','./automation.attributes','exports','define','Automation','util'];(function(_0x398447,_0x18df90){var _0x5d2094=function(_0x3c42a8){while(--_0x3c42a8){_0x398447['push'](_0x398447['shift']());}};_0x5d2094(++_0x18df90);}(_0xa991,0x6d));var _0x1a99=function(_0x17b6e3,_0x4522ed){_0x17b6e3=_0x17b6e3-0x0;var _0x3906f3=_0xa991[_0x17b6e3];return _0x3906f3;};'use strict';var _=require('lodash');var util=require(_0x1a99('0x0'));var logger=require('../../config/logger')(_0x1a99('0x1'));var moment=require(_0x1a99('0x2'));var BPromise=require(_0x1a99('0x3'));var rp=require(_0x1a99('0x4'));var fs=require('fs');var path=require(_0x1a99('0x5'));var rimraf=require('rimraf');var config=require(_0x1a99('0x6'));var attributes=require(_0x1a99('0x7'));module[_0x1a99('0x8')]=function(_0x5dea29,_0x19c92d){return _0x5dea29[_0x1a99('0x9')](_0x1a99('0xa'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};