Built motion from commit (unavailable).|2.5.11
[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 _0xa9ff=['util','../../config/logger','api','path','rimraf','./trunk.attributes','exports','define','Trunk','tools_trunks','lodash'];(function(_0x406ee5,_0x571e6c){var _0x87a117=function(_0x1c08c2){while(--_0x1c08c2){_0x406ee5['push'](_0x406ee5['shift']());}};_0x87a117(++_0x571e6c);}(_0xa9ff,0x1d8));var _0xfa9f=function(_0x340fdf,_0x48ad2b){_0x340fdf=_0x340fdf-0x0;var _0x1a04c2=_0xa9ff[_0x340fdf];return _0x1a04c2;};'use strict';var _=require(_0xfa9f('0x0'));var util=require(_0xfa9f('0x1'));var logger=require(_0xfa9f('0x2'))(_0xfa9f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xfa9f('0x4'));var rimraf=require(_0xfa9f('0x5'));var config=require('../../config/environment');var attributes=require(_0xfa9f('0x6'));module[_0xfa9f('0x7')]=function(_0x3dc535,_0x45ac5d){return _0x3dc535[_0xfa9f('0x8')](_0xfa9f('0x9'),attributes,{'tableName':_0xfa9f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};