ee75a1e0598c2a3185982a630fa9c67f3402761a
[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 _0xefe2=['tools_actions','lodash','util','api','moment','request-promise','rimraf','../../config/environment','./action.attributes','exports','define','Action'];(function(_0x1d6093,_0x1c110b){var _0x21c796=function(_0x19d9dc){while(--_0x19d9dc){_0x1d6093['push'](_0x1d6093['shift']());}};_0x21c796(++_0x1c110b);}(_0xefe2,0xd9));var _0x2efe=function(_0x1b3120,_0x41f9f2){_0x1b3120=_0x1b3120-0x0;var _0x348b44=_0xefe2[_0x1b3120];return _0x348b44;};'use strict';var _=require(_0x2efe('0x0'));var util=require(_0x2efe('0x1'));var logger=require('../../config/logger')(_0x2efe('0x2'));var moment=require(_0x2efe('0x3'));var BPromise=require('bluebird');var rp=require(_0x2efe('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2efe('0x5'));var config=require(_0x2efe('0x6'));var attributes=require(_0x2efe('0x7'));module[_0x2efe('0x8')]=function(_0x3a7cd3,_0x570264){return _0x3a7cd3[_0x2efe('0x9')](_0x2efe('0xa'),attributes,{'tableName':_0x2efe('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};