Built motion from commit (unavailable).|2.5.4
[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 _0x6b33=['tools_trunks','util','api','moment','bluebird','path','../../config/environment','./trunk.attributes','exports','define','Trunk'];(function(_0x3c576b,_0x26166d){var _0x33073b=function(_0x294b12){while(--_0x294b12){_0x3c576b['push'](_0x3c576b['shift']());}};_0x33073b(++_0x26166d);}(_0x6b33,0x161));var _0x36b3=function(_0x560ba7,_0x514250){_0x560ba7=_0x560ba7-0x0;var _0x2905ea=_0x6b33[_0x560ba7];return _0x2905ea;};'use strict';var _=require('lodash');var util=require(_0x36b3('0x0'));var logger=require('../../config/logger')(_0x36b3('0x1'));var moment=require(_0x36b3('0x2'));var BPromise=require(_0x36b3('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x36b3('0x4'));var rimraf=require('rimraf');var config=require(_0x36b3('0x5'));var attributes=require(_0x36b3('0x6'));module[_0x36b3('0x7')]=function(_0x124002,_0x560551){return _0x124002[_0x36b3('0x8')](_0x36b3('0x9'),attributes,{'tableName':_0x36b3('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};