Built motion from commit (unavailable).|2.4.21
[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 _0x8e2a=['tools_trunks','util','api','moment','bluebird','./trunk.attributes','define','Trunk'];(function(_0x3db588,_0x5aaa88){var _0x2ab8cb=function(_0x106dc3){while(--_0x106dc3){_0x3db588['push'](_0x3db588['shift']());}};_0x2ab8cb(++_0x5aaa88);}(_0x8e2a,0x1b1));var _0xa8e2=function(_0x422179,_0x5cfb78){_0x422179=_0x422179-0x0;var _0x2fd49b=_0x8e2a[_0x422179];return _0x2fd49b;};'use strict';var _=require('lodash');var util=require(_0xa8e2('0x0'));var logger=require('../../config/logger')(_0xa8e2('0x1'));var moment=require(_0xa8e2('0x2'));var BPromise=require(_0xa8e2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa8e2('0x4'));module['exports']=function(_0x1cc48e,_0x136c04){return _0x1cc48e[_0xa8e2('0x5')](_0xa8e2('0x6'),attributes,{'tableName':_0xa8e2('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};