Built motion from commit 67e5df37.|2.0.66
[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 _0xb85d=['cm_hopper','scheduledat','phone','priority','lodash','../../config/logger','api','moment','bluebird','./cmHopper.attributes','define','CmHopper'];(function(_0x47e7cb,_0x4c1b8d){var _0x2a8874=function(_0x36498f){while(--_0x36498f){_0x47e7cb['push'](_0x47e7cb['shift']());}};_0x2a8874(++_0x4c1b8d);}(_0xb85d,0xd0));var _0xdb85=function(_0x40c24b,_0x3c1d12){_0x40c24b=_0x40c24b-0x0;var _0x4f2427=_0xb85d[_0x40c24b];return _0x4f2427;};'use strict';var _=require(_0xdb85('0x0'));var util=require('util');var logger=require(_0xdb85('0x1'))(_0xdb85('0x2'));var moment=require(_0xdb85('0x3'));var BPromise=require(_0xdb85('0x4'));var rp=require('request-promise');var attributes=require(_0xdb85('0x5'));module['exports']=function(_0x3598cd,_0x32e7f9){return _0x3598cd[_0xdb85('0x6')](_0xdb85('0x7'),attributes,{'tableName':_0xdb85('0x8'),'paranoid':![],'indexes':[{'name':_0xdb85('0x9'),'fields':[_0xdb85('0x9')]},{'name':_0xdb85('0xa'),'fields':['phone']},{'name':'priority','fields':[_0xdb85('0xb')]}],'timestamps':!![]});};