5f41a6c6d09fbddbe4125150e6d161c8c5b43796
[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 _0x832a=['Trunk','tools_trunks','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','./trunk.attributes'];(function(_0x20bc10,_0x35bed9){var _0x3bd5ce=function(_0x8d1e4c){while(--_0x8d1e4c){_0x20bc10['push'](_0x20bc10['shift']());}};_0x3bd5ce(++_0x35bed9);}(_0x832a,0x162));var _0xa832=function(_0x1dd4de,_0x189290){_0x1dd4de=_0x1dd4de-0x0;var _0xf23408=_0x832a[_0x1dd4de];return _0xf23408;};'use strict';var _=require(_0xa832('0x0'));var util=require(_0xa832('0x1'));var logger=require(_0xa832('0x2'))('api');var moment=require(_0xa832('0x3'));var BPromise=require(_0xa832('0x4'));var rp=require(_0xa832('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa832('0x6'));var config=require(_0xa832('0x7'));var attributes=require(_0xa832('0x8'));module['exports']=function(_0x3fa4f8,_0x47558f){return _0x3fa4f8['define'](_0xa832('0x9'),attributes,{'tableName':_0xa832('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};