9634300b579d0bfc5ca90e876e97e85aa7dd4d0a
[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 _0xcf01=['./action.attributes','exports','tools_actions','lodash','util','api','moment','bluebird','path','rimraf'];(function(_0x5c06b,_0x20564c){var _0x34c54c=function(_0x40be24){while(--_0x40be24){_0x5c06b['push'](_0x5c06b['shift']());}};_0x34c54c(++_0x20564c);}(_0xcf01,0x16b));var _0x1cf0=function(_0xe2cbd3,_0x678694){_0xe2cbd3=_0xe2cbd3-0x0;var _0x5155e3=_0xcf01[_0xe2cbd3];return _0x5155e3;};'use strict';var _=require(_0x1cf0('0x0'));var util=require(_0x1cf0('0x1'));var logger=require('../../config/logger')(_0x1cf0('0x2'));var moment=require(_0x1cf0('0x3'));var BPromise=require(_0x1cf0('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1cf0('0x5'));var rimraf=require(_0x1cf0('0x6'));var config=require('../../config/environment');var attributes=require(_0x1cf0('0x7'));module[_0x1cf0('0x8')]=function(_0x33605e,_0x343741){return _0x33605e['define']('Action',attributes,{'tableName':_0x1cf0('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};