Built motion from commit (unavailable).|2.5.22
[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 _0x8637=['exports','Trunk','tools_trunks','util','../../config/logger','bluebird','path','rimraf','../../config/environment'];(function(_0x4ba380,_0x259bee){var _0x4b111b=function(_0x2bf227){while(--_0x2bf227){_0x4ba380['push'](_0x4ba380['shift']());}};_0x4b111b(++_0x259bee);}(_0x8637,0x111));var _0x7863=function(_0x28d25a,_0x16f1d0){_0x28d25a=_0x28d25a-0x0;var _0x2644f5=_0x8637[_0x28d25a];return _0x2644f5;};'use strict';var _=require('lodash');var util=require(_0x7863('0x0'));var logger=require(_0x7863('0x1'))('api');var moment=require('moment');var BPromise=require(_0x7863('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7863('0x3'));var rimraf=require(_0x7863('0x4'));var config=require(_0x7863('0x5'));var attributes=require('./trunk.attributes');module[_0x7863('0x6')]=function(_0x24e189,_0x5df8d1){return _0x24e189['define'](_0x7863('0x7'),attributes,{'tableName':_0x7863('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};