6710a832b49d310a04a30fbfc4c9ccfa48a3e504
[motion2.git] / server / api / disposition / disposition.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 _0x0290=['name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','ListId','name_chat','name_mail','name','MailAccountId','name_sms','SmsAccountId','name_fax'];(function(_0x369151,_0x179f72){var _0x4292d5=function(_0x330422){while(--_0x330422){_0x369151['push'](_0x369151['shift']());}};_0x4292d5(++_0x179f72);}(_0x0290,0x81));var _0x0029=function(_0x550d12,_0x5384bd){_0x550d12=_0x550d12-0x0;var _0x12103d=_0x0290[_0x550d12];return _0x12103d;};'use strict';var _=require(_0x0029('0x0'));var util=require(_0x0029('0x1'));var logger=require(_0x0029('0x2'))(_0x0029('0x3'));var moment=require(_0x0029('0x4'));var BPromise=require(_0x0029('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0029('0x6'));var rimraf=require(_0x0029('0x7'));var config=require(_0x0029('0x8'));var attributes=require(_0x0029('0x9'));module[_0x0029('0xa')]=function(_0x562a91,_0x37e56f){return _0x562a91[_0x0029('0xb')](_0x0029('0xc'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0x0029('0xd')]},{'unique':!![],'name':_0x0029('0xe'),'fields':['name','ChatWebsiteId']},{'unique':!![],'name':_0x0029('0xf'),'fields':[_0x0029('0x10'),_0x0029('0x11')]},{'unique':!![],'name':_0x0029('0x12'),'fields':[_0x0029('0x10'),_0x0029('0x13')]},{'unique':!![],'name':_0x0029('0x14'),'fields':[_0x0029('0x10'),'FaxAccountId']},{'unique':!![],'name':_0x0029('0x15'),'fields':[_0x0029('0x10'),_0x0029('0x16')]},{'unique':!![],'name':_0x0029('0x17'),'fields':[_0x0029('0x10'),_0x0029('0x18')]}],'timestamps':!![]});};