e19eb868cc78b690bfa194a0edc6042bdefec761
[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 _0xc84a=['Automation','tools_automations','util','../../config/logger','moment','bluebird','path','../../config/environment','./automation.attributes','exports','define'];(function(_0x53b0f8,_0x459130){var _0x133415=function(_0x37a4a5){while(--_0x37a4a5){_0x53b0f8['push'](_0x53b0f8['shift']());}};_0x133415(++_0x459130);}(_0xc84a,0x1ba));var _0xac84=function(_0x2e7eca,_0x5d2d6e){_0x2e7eca=_0x2e7eca-0x0;var _0x5d186b=_0xc84a[_0x2e7eca];return _0x5d186b;};'use strict';var _=require('lodash');var util=require(_0xac84('0x0'));var logger=require(_0xac84('0x1'))('api');var moment=require(_0xac84('0x2'));var BPromise=require(_0xac84('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xac84('0x4'));var rimraf=require('rimraf');var config=require(_0xac84('0x5'));var attributes=require(_0xac84('0x6'));module[_0xac84('0x7')]=function(_0x4d4ee7,_0x586065){return _0x4d4ee7[_0xac84('0x8')](_0xac84('0x9'),attributes,{'tableName':_0xac84('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};