07c0f82163f4cdabeae8febd07a7a0c5a5df56be
[motion2.git] / server / api / trunk / trunk.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 _0xdce1=['tools_trunks','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./trunk.attributes','define','Trunk'];(function(_0x3af3c6,_0x5bb7e7){var _0x4811b8=function(_0x40811a){while(--_0x40811a){_0x3af3c6['push'](_0x3af3c6['shift']());}};_0x4811b8(++_0x5bb7e7);}(_0xdce1,0x9b));var _0x1dce=function(_0x2ba030,_0x2a14e8){_0x2ba030=_0x2ba030-0x0;var _0x5b09e6=_0xdce1[_0x2ba030];return _0x5b09e6;};'use strict';var _=require('lodash');var util=require(_0x1dce('0x0'));var logger=require(_0x1dce('0x1'))('api');var moment=require(_0x1dce('0x2'));var BPromise=require(_0x1dce('0x3'));var rp=require(_0x1dce('0x4'));var fs=require('fs');var path=require(_0x1dce('0x5'));var rimraf=require('rimraf');var config=require(_0x1dce('0x6'));var attributes=require(_0x1dce('0x7'));module['exports']=function(_0x3a088d,_0x1e03dc){return _0x3a088d[_0x1dce('0x8')](_0x1dce('0x9'),attributes,{'tableName':_0x1dce('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};