bd125db1c912979b0d45a45a0458e58532d1d9b7
[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 _0xecc9=['../../config/logger','api','moment','bluebird','path','../../config/environment','./disposition.attributes','define','Disposition','tools_dispositions','ListId','name_chat','name','ChatWebsiteId','name_mail','name_sms','SmsAccountId','name_fax','FaxAccountId','OpenchannelAccountId','name_whatsapp','lodash','util'];(function(_0x5ddaac,_0x2697a8){var _0x2a9c58=function(_0x851032){while(--_0x851032){_0x5ddaac['push'](_0x5ddaac['shift']());}};_0x2a9c58(++_0x2697a8);}(_0xecc9,0xcd));var _0x9ecc=function(_0xa9a245,_0x2a0387){_0xa9a245=_0xa9a245-0x0;var _0x2d0eaa=_0xecc9[_0xa9a245];return _0x2d0eaa;};'use strict';var _=require(_0x9ecc('0x0'));var util=require(_0x9ecc('0x1'));var logger=require(_0x9ecc('0x2'))(_0x9ecc('0x3'));var moment=require(_0x9ecc('0x4'));var BPromise=require(_0x9ecc('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9ecc('0x6'));var rimraf=require('rimraf');var config=require(_0x9ecc('0x7'));var attributes=require(_0x9ecc('0x8'));module['exports']=function(_0x44959d,_0x5973cc){return _0x44959d[_0x9ecc('0x9')](_0x9ecc('0xa'),attributes,{'tableName':_0x9ecc('0xb'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0x9ecc('0xc')]},{'unique':!![],'name':_0x9ecc('0xd'),'fields':[_0x9ecc('0xe'),_0x9ecc('0xf')]},{'unique':!![],'name':_0x9ecc('0x10'),'fields':[_0x9ecc('0xe'),'MailAccountId']},{'unique':!![],'name':_0x9ecc('0x11'),'fields':[_0x9ecc('0xe'),_0x9ecc('0x12')]},{'unique':!![],'name':_0x9ecc('0x13'),'fields':[_0x9ecc('0xe'),_0x9ecc('0x14')]},{'unique':!![],'name':'name_openchannel','fields':['name',_0x9ecc('0x15')]},{'unique':!![],'name':_0x9ecc('0x16'),'fields':[_0x9ecc('0xe'),'WhatsappAccountId']}],'timestamps':!![]});};