Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / action / action.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 _0x3ede=['path','rimraf','../../config/environment','./action.attributes','exports','define','Action','tools_actions','lodash','api','request-promise'];(function(_0xea6018,_0x4cf082){var _0x57b54d=function(_0x49099a){while(--_0x49099a){_0xea6018['push'](_0xea6018['shift']());}};_0x57b54d(++_0x4cf082);}(_0x3ede,0x1cb));var _0xe3ed=function(_0x50c492,_0x5c1e67){_0x50c492=_0x50c492-0x0;var _0x3505a8=_0x3ede[_0x50c492];return _0x3505a8;};'use strict';var _=require(_0xe3ed('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe3ed('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xe3ed('0x2'));var fs=require('fs');var path=require(_0xe3ed('0x3'));var rimraf=require(_0xe3ed('0x4'));var config=require(_0xe3ed('0x5'));var attributes=require(_0xe3ed('0x6'));module[_0xe3ed('0x7')]=function(_0x20af53,_0x25221f){return _0x20af53[_0xe3ed('0x8')](_0xe3ed('0x9'),attributes,{'tableName':_0xe3ed('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};