e1b18f363091563b3f5f255d69e51902aec06851
[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 _0xc89f=['./trunk.attributes','exports','define','Trunk','lodash','util','moment','path','rimraf','../../config/environment'];(function(_0x3592cb,_0xdd7720){var _0x43091a=function(_0x24a8f5){while(--_0x24a8f5){_0x3592cb['push'](_0x3592cb['shift']());}};_0x43091a(++_0xdd7720);}(_0xc89f,0x90));var _0xfc89=function(_0x4a4603,_0x1e9e15){_0x4a4603=_0x4a4603-0x0;var _0x47ed45=_0xc89f[_0x4a4603];return _0x47ed45;};'use strict';var _=require(_0xfc89('0x0'));var util=require(_0xfc89('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xfc89('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xfc89('0x3'));var rimraf=require(_0xfc89('0x4'));var config=require(_0xfc89('0x5'));var attributes=require(_0xfc89('0x6'));module[_0xfc89('0x7')]=function(_0x461657,_0x311cff){return _0x461657[_0xfc89('0x8')](_0xfc89('0x9'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};