Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / cmHopper / cmHopper.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 _0x39fe=['moment','bluebird','path','rimraf','../../config/environment','./cmHopper.attributes','define','cm_hopper','scheduledat','phone','priority','lodash','util','../../config/logger','api'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x39fe,0x74));var _0xe39f=function(_0x516bfc,_0x50d713){_0x516bfc=_0x516bfc-0x0;var _0x380919=_0x39fe[_0x516bfc];return _0x380919;};'use strict';var _=require(_0xe39f('0x0'));var util=require(_0xe39f('0x1'));var logger=require(_0xe39f('0x2'))(_0xe39f('0x3'));var moment=require(_0xe39f('0x4'));var BPromise=require(_0xe39f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe39f('0x6'));var rimraf=require(_0xe39f('0x7'));var config=require(_0xe39f('0x8'));var attributes=require(_0xe39f('0x9'));module['exports']=function(_0x1b59a8,_0x563c74){return _0x1b59a8[_0xe39f('0xa')]('CmHopper',attributes,{'tableName':_0xe39f('0xb'),'paranoid':![],'indexes':[{'name':_0xe39f('0xc'),'fields':[_0xe39f('0xc')]},{'name':_0xe39f('0xd'),'fields':[_0xe39f('0xd')]},{'name':_0xe39f('0xe'),'fields':['priority']}],'timestamps':!![]});};