Built motion from commit ab870f9e.|2.5.44
[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 _0x38a7=['../../config/environment','./trunk.attributes','Trunk','tools_trunks','util','api','bluebird','path','rimraf'];(function(_0x28c132,_0x1f5027){var _0x12109d=function(_0x51723c){while(--_0x51723c){_0x28c132['push'](_0x28c132['shift']());}};_0x12109d(++_0x1f5027);}(_0x38a7,0xf7));var _0x738a=function(_0x419ebe,_0xad321a){_0x419ebe=_0x419ebe-0x0;var _0x49013f=_0x38a7[_0x419ebe];return _0x49013f;};'use strict';var _=require('lodash');var util=require(_0x738a('0x0'));var logger=require('../../config/logger')(_0x738a('0x1'));var moment=require('moment');var BPromise=require(_0x738a('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x738a('0x3'));var rimraf=require(_0x738a('0x4'));var config=require(_0x738a('0x5'));var attributes=require(_0x738a('0x6'));module['exports']=function(_0x25a21a,_0x1a4775){return _0x25a21a['define'](_0x738a('0x7'),attributes,{'tableName':_0x738a('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};