Built motion from commit da24aabd.|2.6.20
[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 _0x8c68=['../../config/logger','api','bluebird','path','rimraf','../../config/environment','./trunk.attributes','exports','define','Trunk','lodash','util'];(function(_0x238323,_0x34df18){var _0x1575de=function(_0x1acff8){while(--_0x1acff8){_0x238323['push'](_0x238323['shift']());}};_0x1575de(++_0x34df18);}(_0x8c68,0x11e));var _0x88c6=function(_0x53867f,_0x528117){_0x53867f=_0x53867f-0x0;var _0x4bfe05=_0x8c68[_0x53867f];return _0x4bfe05;};'use strict';var _=require(_0x88c6('0x0'));var util=require(_0x88c6('0x1'));var logger=require(_0x88c6('0x2'))(_0x88c6('0x3'));var moment=require('moment');var BPromise=require(_0x88c6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x88c6('0x5'));var rimraf=require(_0x88c6('0x6'));var config=require(_0x88c6('0x7'));var attributes=require(_0x88c6('0x8'));module[_0x88c6('0x9')]=function(_0x2edc31,_0x2a4a2e){return _0x2edc31[_0x88c6('0xa')](_0x88c6('0xb'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};