6d25e2526191104d7d7b92ef90ed92e07b0335c5
[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 _0x210b=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./trunk.attributes','exports','define','Trunk','util'];(function(_0x56482c,_0x16118d){var _0x5aae7a=function(_0x52512f){while(--_0x52512f){_0x56482c['push'](_0x56482c['shift']());}};_0x5aae7a(++_0x16118d);}(_0x210b,0x143));var _0xb210=function(_0x30faee,_0x1c3794){_0x30faee=_0x30faee-0x0;var _0x3a90ab=_0x210b[_0x30faee];return _0x3a90ab;};'use strict';var _=require('lodash');var util=require(_0xb210('0x0'));var logger=require('../../config/logger')(_0xb210('0x1'));var moment=require(_0xb210('0x2'));var BPromise=require(_0xb210('0x3'));var rp=require(_0xb210('0x4'));var fs=require('fs');var path=require(_0xb210('0x5'));var rimraf=require(_0xb210('0x6'));var config=require(_0xb210('0x7'));var attributes=require(_0xb210('0x8'));module[_0xb210('0x9')]=function(_0x4bf844,_0x537623){return _0x4bf844[_0xb210('0xa')](_0xb210('0xb'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};