b04735e20c22bc2b5ffd738f202df2a0373588e1
[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 _0xcc36=['rimraf','../../config/environment','./trunk.attributes','exports','Trunk','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x402b53,_0x3e578b){var _0x575025=function(_0x52621e){while(--_0x52621e){_0x402b53['push'](_0x402b53['shift']());}};_0x575025(++_0x3e578b);}(_0xcc36,0x101));var _0x6cc3=function(_0x514b08,_0x35b311){_0x514b08=_0x514b08-0x0;var _0x337f7c=_0xcc36[_0x514b08];return _0x337f7c;};'use strict';var _=require(_0x6cc3('0x0'));var util=require(_0x6cc3('0x1'));var logger=require('../../config/logger')(_0x6cc3('0x2'));var moment=require(_0x6cc3('0x3'));var BPromise=require(_0x6cc3('0x4'));var rp=require(_0x6cc3('0x5'));var fs=require('fs');var path=require(_0x6cc3('0x6'));var rimraf=require(_0x6cc3('0x7'));var config=require(_0x6cc3('0x8'));var attributes=require(_0x6cc3('0x9'));module[_0x6cc3('0xa')]=function(_0x28b9b6,_0x497d0b){return _0x28b9b6['define'](_0x6cc3('0xb'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};