Built motion from commit ddca4d0d.|2.5.47
[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 _0x652f=['lodash','util','api','request-promise','path','./trunk.attributes','exports','define','Trunk','tools_trunks'];(function(_0x6549ff,_0x44ee99){var _0x18ed41=function(_0x278bdb){while(--_0x278bdb){_0x6549ff['push'](_0x6549ff['shift']());}};_0x18ed41(++_0x44ee99);}(_0x652f,0x12c));var _0xf652=function(_0x9f5ffa,_0xc18a0d){_0x9f5ffa=_0x9f5ffa-0x0;var _0x4f8d24=_0x652f[_0x9f5ffa];return _0x4f8d24;};'use strict';var _=require(_0xf652('0x0'));var util=require(_0xf652('0x1'));var logger=require('../../config/logger')(_0xf652('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf652('0x3'));var fs=require('fs');var path=require(_0xf652('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf652('0x5'));module[_0xf652('0x6')]=function(_0x2d070a,_0x1d8167){return _0x2d070a[_0xf652('0x7')](_0xf652('0x8'),attributes,{'tableName':_0xf652('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};