04d91e9f976bb529ef11663dc8a39bdb1c94ba1c
[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 _0x3ae8=['path','rimraf','../../config/environment','./trunk.attributes','define','Trunk','tools_trunks','lodash','api','moment'];(function(_0x1d357b,_0x4af1ba){var _0x240114=function(_0x46c814){while(--_0x46c814){_0x1d357b['push'](_0x1d357b['shift']());}};_0x240114(++_0x4af1ba);}(_0x3ae8,0x18d));var _0x83ae=function(_0x264505,_0x139ee5){_0x264505=_0x264505-0x0;var _0x1579ff=_0x3ae8[_0x264505];return _0x1579ff;};'use strict';var _=require(_0x83ae('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x83ae('0x1'));var moment=require(_0x83ae('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x83ae('0x3'));var rimraf=require(_0x83ae('0x4'));var config=require(_0x83ae('0x5'));var attributes=require(_0x83ae('0x6'));module['exports']=function(_0x1c0c88,_0x5b6972){return _0x1c0c88[_0x83ae('0x7')](_0x83ae('0x8'),attributes,{'tableName':_0x83ae('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};