ec69e2350f16c63c31e7720bbeffab9e33720d1b
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0x710e=['lodash','api','moment','bluebird','request-promise','path','../../config/environment','./cannedAnswer.attributes','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci'];(function(_0x17ec0f,_0x5126a3){var _0x3a4191=function(_0x3ed243){while(--_0x3ed243){_0x17ec0f['push'](_0x17ec0f['shift']());}};_0x3a4191(++_0x5126a3);}(_0x710e,0xb6));var _0xe710=function(_0x50fd87,_0x33f30c){_0x50fd87=_0x50fd87-0x0;var _0x4c6686=_0x710e[_0x50fd87];return _0x4c6686;};'use strict';var _=require(_0xe710('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe710('0x1'));var moment=require(_0xe710('0x2'));var BPromise=require(_0xe710('0x3'));var rp=require(_0xe710('0x4'));var fs=require('fs');var path=require(_0xe710('0x5'));var rimraf=require('rimraf');var config=require(_0xe710('0x6'));var attributes=require(_0xe710('0x7'));module['exports']=function(_0x5a9e4c,_0xd8271b){return _0x5a9e4c[_0xe710('0x8')](_0xe710('0x9'),attributes,{'tableName':_0xe710('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xe710('0xb'),'collate':_0xe710('0xc')});};