Built motion from commit 5293bb2a.|2.6.30
[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 _0x8a85=['tools_actions','util','api','moment','path','rimraf','../../config/environment','./action.attributes','exports','define','Action'];(function(_0x1927e6,_0x533110){var _0x167b6d=function(_0x175ff1){while(--_0x175ff1){_0x1927e6['push'](_0x1927e6['shift']());}};_0x167b6d(++_0x533110);}(_0x8a85,0x64));var _0x58a8=function(_0x18a9c7,_0x482d37){_0x18a9c7=_0x18a9c7-0x0;var _0x15c561=_0x8a85[_0x18a9c7];return _0x15c561;};'use strict';var _=require('lodash');var util=require(_0x58a8('0x0'));var logger=require('../../config/logger')(_0x58a8('0x1'));var moment=require(_0x58a8('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x58a8('0x3'));var rimraf=require(_0x58a8('0x4'));var config=require(_0x58a8('0x5'));var attributes=require(_0x58a8('0x6'));module[_0x58a8('0x7')]=function(_0x4fedae,_0x5f37a6){return _0x4fedae[_0x58a8('0x8')](_0x58a8('0x9'),attributes,{'tableName':_0x58a8('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};