92c5787b8ab301201293cb661b913f3ec91d6bb5
[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 _0x37cb=['Trunk','tools_trunks','lodash','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./trunk.attributes','exports','define'];(function(_0xc88ade,_0x137f3d){var _0x4d8c9b=function(_0x4856eb){while(--_0x4856eb){_0xc88ade['push'](_0xc88ade['shift']());}};_0x4d8c9b(++_0x137f3d);}(_0x37cb,0x12d));var _0xb37c=function(_0x2dadb9,_0x42cfe6){_0x2dadb9=_0x2dadb9-0x0;var _0x2f0097=_0x37cb[_0x2dadb9];return _0x2f0097;};'use strict';var _=require(_0xb37c('0x0'));var util=require(_0xb37c('0x1'));var logger=require(_0xb37c('0x2'))(_0xb37c('0x3'));var moment=require(_0xb37c('0x4'));var BPromise=require(_0xb37c('0x5'));var rp=require(_0xb37c('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xb37c('0x7'));var attributes=require(_0xb37c('0x8'));module[_0xb37c('0x9')]=function(_0x26b8e7,_0xdcf896){return _0x26b8e7[_0xb37c('0xa')](_0xb37c('0xb'),attributes,{'tableName':_0xb37c('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};