287f34b21e3604219d339c31a26a2cbc80ee0eaf
[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 _0x2119=['util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./automation.attributes','exports','define','Automation','tools_automations','lodash'];(function(_0x289802,_0x537d3e){var _0x2db8fc=function(_0x115ea9){while(--_0x115ea9){_0x289802['push'](_0x289802['shift']());}};_0x2db8fc(++_0x537d3e);}(_0x2119,0x16b));var _0x9211=function(_0x2ce914,_0xcd8f3c){_0x2ce914=_0x2ce914-0x0;var _0x459bb7=_0x2119[_0x2ce914];return _0x459bb7;};'use strict';var _=require(_0x9211('0x0'));var util=require(_0x9211('0x1'));var logger=require('../../config/logger')(_0x9211('0x2'));var moment=require(_0x9211('0x3'));var BPromise=require(_0x9211('0x4'));var rp=require(_0x9211('0x5'));var fs=require('fs');var path=require(_0x9211('0x6'));var rimraf=require(_0x9211('0x7'));var config=require(_0x9211('0x8'));var attributes=require(_0x9211('0x9'));module[_0x9211('0xa')]=function(_0x5d929e,_0x21e465){return _0x5d929e[_0x9211('0xb')](_0x9211('0xc'),attributes,{'tableName':_0x9211('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};