1ede46121c7ee981920047372c8d949d86d33208
[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 _0x8e8d=['path','rimraf','./trunk.attributes','exports','Trunk','tools_trunks','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x1e7b16,_0x4607a1){var _0x37fadc=function(_0x1fc9ce){while(--_0x1fc9ce){_0x1e7b16['push'](_0x1e7b16['shift']());}};_0x37fadc(++_0x4607a1);}(_0x8e8d,0x96));var _0xd8e8=function(_0xe7e63c,_0x1d2543){_0xe7e63c=_0xe7e63c-0x0;var _0x16e9d0=_0x8e8d[_0xe7e63c];return _0x16e9d0;};'use strict';var _=require(_0xd8e8('0x0'));var util=require(_0xd8e8('0x1'));var logger=require(_0xd8e8('0x2'))(_0xd8e8('0x3'));var moment=require(_0xd8e8('0x4'));var BPromise=require(_0xd8e8('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd8e8('0x6'));var rimraf=require(_0xd8e8('0x7'));var config=require('../../config/environment');var attributes=require(_0xd8e8('0x8'));module[_0xd8e8('0x9')]=function(_0x5bc01b,_0x419569){return _0x5bc01b['define'](_0xd8e8('0xa'),attributes,{'tableName':_0xd8e8('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};