Built motion from commit (unavailable).|2.5.5
[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 _0x83e8=['moment','bluebird','path','rimraf','exports','Trunk','tools_trunks','lodash','util'];(function(_0x5dfc2a,_0x1a953f){var _0x3f1a71=function(_0x15916){while(--_0x15916){_0x5dfc2a['push'](_0x5dfc2a['shift']());}};_0x3f1a71(++_0x1a953f);}(_0x83e8,0x19c));var _0x883e=function(_0x972516,_0x14dc95){_0x972516=_0x972516-0x0;var _0x4c94ff=_0x83e8[_0x972516];return _0x4c94ff;};'use strict';var _=require(_0x883e('0x0'));var util=require(_0x883e('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x883e('0x2'));var BPromise=require(_0x883e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x883e('0x4'));var rimraf=require(_0x883e('0x5'));var config=require('../../config/environment');var attributes=require('./trunk.attributes');module[_0x883e('0x6')]=function(_0x39ce7e,_0x37f11c){return _0x39ce7e['define'](_0x883e('0x7'),attributes,{'tableName':_0x883e('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};