c5ae0452179db2c4c84851fb521c9bd5e5991ddf
[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 _0xd2e3=['request-promise','rimraf','../../config/environment','./trunk.attributes','exports','util','../../config/logger','api','moment'];(function(_0x3b41a4,_0x2920b7){var _0x389dc7=function(_0x5dd21c){while(--_0x5dd21c){_0x3b41a4['push'](_0x3b41a4['shift']());}};_0x389dc7(++_0x2920b7);}(_0xd2e3,0x1c7));var _0x3d2e=function(_0x217bf9,_0xdfd805){_0x217bf9=_0x217bf9-0x0;var _0x1bfe12=_0xd2e3[_0x217bf9];return _0x1bfe12;};'use strict';var _=require('lodash');var util=require(_0x3d2e('0x0'));var logger=require(_0x3d2e('0x1'))(_0x3d2e('0x2'));var moment=require(_0x3d2e('0x3'));var BPromise=require('bluebird');var rp=require(_0x3d2e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3d2e('0x5'));var config=require(_0x3d2e('0x6'));var attributes=require(_0x3d2e('0x7'));module[_0x3d2e('0x8')]=function(_0x187711,_0x1ff4e9){return _0x187711['define']('Trunk',attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};